package monsters;

import game.Room;

public class UnpeacefulMonster extends Monster {

   public UnpeacefulMonster(String name, Room room) {
      super(name, room, 1, Integer.MAX_VALUE);
   }

   @Override
   protected void doDarkRoomActivity() {
      say("Olen rahutu.. tümps tümps");
   }

   @Override
   protected void doLightRoomActivity() {
      if (room.getMonsters().size() <= 1) {
         say("Puhkan jalgu");
      } else {
         fight(this == room.getMonsters().get(0)?room.getMonsters().get(1):room.getMonsters().get(0));
      }
   }

}
